package com.yootoo.extpmml

import com.yootoo.extpmml.dsl.AdapterExecutor
import com.yootoo.extpmml.dsl.AdapterSpec

class TestGroovy {
    public static void main(String[] args) {
        def spec = new AdapterSpec();
        Closure dsl = new GroovyShell().parse('return {' + new File("/Users/yootoo/workspace/osc/extpmml/extpmml/src/test/resources/postman.groovy").text + '}').run()
        dsl.rehydrate(spec,spec,spec).run()
        def executor = new AdapterExecutor(spec, 'postman', null)
        println(executor.doAdapter([:]))
    }
}
